<%@ include file="/taglibs.jsp"%>
<%@ page
	import="java.util.List,java.util.Iterator,com.stable.model.TblKunde,com.stable.dao.Dao"%>

<table class="wm_hide" id="info">

	<tr>
		<td class="wm_info_message" id="info_message"></td>
	</tr>
</table>
<div align="center" id="content">
<div class="wm_logo" id="logo" tabindex="-1"></div>
<div id="login_screen">
<div class="wm_hide" id="login_error"></div>

<html:form action="kunde.do?method=KundeAktualisieren">
	<table class="wm_login wm_fixed" id="login_table" border="0"
		cellspacing="0" cellpadding="0">
		<col width="100"></col>
		<col width="88"></col>
		<col width="70"></col>
		<col width="33"></col>
		<col width="42"></col>
		<tr>
        <% String kundenId = (String)request.getAttribute("kundenId");
        TblKunde kunde = (TblKunde)new Dao().get(TblKunde.class, Integer.valueOf(kundenId));%>

			<td class="wm_login_header" colspan="5">Kunden bearbeiten</td>
		</tr>

		<tr>
			<td class="wm_title" width="299">Kundenname: *</td>

			<td colspan="4"><html:text name="customerForm" property="name"
				styleClass="wm_input" maxlength="255"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';" value="<%=kunde.getKundenname()%>"/></td>
		</tr>
		<tr>
			<td class="wm_title" width="299">E-Mail:</td>

			<td colspan="4"><html:text name="customerForm" property="email"
				styleClass="wm_input" maxlength="255"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';" value="<%=kunde.getEmail()%>"/></td>
		</tr>

		<tr id="login_cont">
			<td class="wm_title" width="299">Telefon:</td>
			<td colspan="4"><html:text name="customerForm" property="telefon"
				styleClass="wm_input" maxlength="255"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';" value="<%=kunde.getTelefon()%>"/></td>
		</tr>
		<tr>
			<td class="wm_title" width="299">Strasse Haus Nr.:</td>

			<td colspan="4"><html:text name="customerForm"
				property="strasse" styleClass="wm_input" maxlength="255"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';" value="<%=kunde.getStandort()%>"/></td>
		</tr>
		<tr>
			<td class="wm_title" width="299">PLZ:</td>
			<td colspan="4"><html:text name="customerForm"
				property="plz" styleClass="wm_input" maxlength="255"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';" value="<%=kunde.getPlz()%>"/></td>

		</tr>
		<tr>
			<td class="wm_title" width="299">Standort:</td>
			<td colspan="4" class="wm_input">
            <html:text name="customerForm"
				property="standort" styleClass="wm_input" maxlength="255"
				onfocus="this.className = 'wm_input_focus';"
				onblur="this.className = 'wm_input';" value="<%=kunde.getStandort()%>"/></td>

		</tr>
		<tr>
                    <input type="hidden" name="kundenId" value="<%=kunde.getKundeId()%>" />
			<td colspan="5"><span class="wm_login_button"> <input
				class="wm_button" type="submit"
				value='<bean:message key="link.form.save"/>' /> </span></td>
		</tr>
	</table>
</html:form></div>
</div>
